#ifndef CONSOLE_H
#define CONSOLE_H

#include "Object.h"

class Console
{
public:
	inline static void write(var o) { cout << o.toString(); } 
	inline static void write(const char* o) { cout << o; }
	inline static void write(double o) { cout << o; }
	inline static void write(integer o) { cout << o; }
	inline static void writeLine(var o) { cout << o.toString() << "\n"; }
	inline static void writeLine(const char* o) { cout << o << endl; }
	inline static void writeLine(double o) { cout << o << endl; }
	inline static void writeLine(integer o) { cout << o << endl; }
	static integer  readInt();
	static double readReal();
	static var  readChar();
	static string  readLine();
};

#endif